﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Leffaetsin.Models;
using Leffaetsin.Services.Providers.ShowProviders;

namespace Leffaetsin.Services
{
    public static class AreaService
    {
        public static IEnumerable<string> GetAreas()
        {
            var areas = ShowProvider.GetAreas().OrderBy(e => e).ToList();
            var pkseutu = areas.First(e => e == "Pääkaupunkiseutu");
            areas.Remove(pkseutu);
            areas.Insert(0, pkseutu);

            return areas;
        }
    }
}